import request from '@/utils/request';

export function useAuthApi() {
  return {
    login: (data: object) => {
      return request({
        url: `/api/user/login`,
        method: 'post',
        data,
      });
    },
  };
}
